<div class="editor-default-node4-header-medium" data-template="t_4_3">
	<img src="https://urc-thumb.oss-cn-beijing.aliyuncs.com/resource-temp/1725514076938section-ico4.png">1.2.5 配置安装环境
</div>
<h3>  <b style="font-size: medium; font-family: 微软雅黑, 宋体, &quot;Arial Narrow&quot;, HELVETICA;">&nbsp;1. 安装依赖</b></h3>
<p style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在虚拟机任意目录下，执行以下命令安装软件依赖。</p>
<p><span class="font_blue2">[root@node1
		openGauss]# yum install -y python3 boost curl wget libaio-devel flex bison
		ncurses-devel glibc-devel patch readline-devel bzip2 firewalld crontabs
		net-tools which libnsl tar&nbsp;</span></p>
<p style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;提示“Complete！”即安装完成。</p>
<p>  <b>2. 关闭防火墙服务</b></p>
<p style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在虚拟机任意目录下执行以下命令关闭防火墙服务。</p>
<p><span class="font_blue2">[root@node1
		openGauss]# sed -i "s/SELINUX=.*/SELINUX=disabled/g"
		/etc/selinux/config</span></p>
<p><span class="font_blue2">[root@node1
		openGauss]# systemctl stop firewalld&nbsp;</span></p>
<p><span class="font_blue2">[root@node1
		openGauss]# systemctl disable firewalld</span></p>
<p style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可以执行以下命令确认防火墙服务是否关闭。</p>
<p><span class="font_blue2">[root@node1
		openGauss]# systemctl status firewalld&nbsp;</span></p>
<p style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如图1-2-5所示，图中防火墙状态为“inactive (dead)”则已关闭。
</p>
<p style="text-align:center;" id="pic_p_PKN8A8JPKC"><img res-type="image" class="insertPic cres" id="PKN8A8JPKC"
		src="https://dbook.hep.com.cn/api/v2/resource/preview?id=PKN8A8JPKC" style="max-width:100%;"><br><span
		class="insertPicTitle" id="pic_title_PKN8A8JPKC">图1-2-5 关闭并查看防火墙服务</span></p>

<p>  <b>3. 解压安装包</b></p>
<p style="text-align:justify;">
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;通过cd命令切换到/opt/software/openGauss目录下并解压安装包，如图1-2-6所示。命令如下：</p>
<p><span class="font_blue2">[root@node1
		openGauss]# cd /opt/software/openGauss&nbsp;</span></p>
<p><span class="font_blue2">[root@node1
		openGauss]# tar -zxf openGauss-All-6.0.0-openEuler22.03-x86_64.tar.gz&nbsp;</span></p>
<p><span class="font_blue2">[root@node1
		openGauss]# tar -zxf openGauss-OM-6.0.0-openEuler22.03-x86_64.tar.gz</span></p>
<p style="text-align:center;" id="pic_p_P3P6DREU3J"><img res-type="image" class="insertPic cres" id="P3P6DREU3J"
		src="https://dbook.hep.com.cn/api/v2/resource/preview?id=P3P6DREU3J" style="max-width:100%;"><span
		class="insertPicTitle" id="pic_title_P3P6DREU3J">图1-2-6 解压安装包</span></p>
<p style="text-align: center;" id="video_p_PKNXA9X3JC"><span class="td" id="video_td_span_PKNXA9X3JC"><input
			id="check_PKNXA9X3JC" type="checkbox" class="insertVideoCheck"><span class="videoTitlepc-new"
			id="video_title_span_PKNXA9X3JC"
			style="background: url(https://dbook.hep.com.cn/admin/css/img/vedio_pic.png) no-repeat 5px 7px;background-size: 45px;">视频1-2-2
			安装openGauss数据库（获取安装包和配置安装环境）</span><label for="check_PKNXA9X3JC" class="check-in-new"
			style="background-image: url(&quot;https://dbook.hep.com.cn/admin/css/img/upICO.png&quot;); background-repeat: no-repeat; background-color: initial; background-size: 30px;"></label><label
			for="check_PKNXA9X3JC" class="check-out-new"
			style="background-image: url(&quot;https://dbook.hep.com.cn/admin/css/img/downICO.png&quot;); background-repeat: no-repeat; background-color: initial; background-size: 30px;"></label><span
			class="element-new"><video res-type="video" class="insertVideo cres" id="PKNXA9X3JC"
				src="https://dbook.hep.com.cn/api/v2/resource/preview?id=PKNXA9X3JC" controls="" width="100%"
				poster="https://dbook.hep.com.cn/api/v2/resource/cover/preview?id=PKNXA9X3JC"></video><br><span
				class="insertVideoTitle" id="video_title_PKNXA9X3JC">视频1-2-2
				安装openGauss数据库（获取安装包和配置安装环境）</span></span></span></p>
<p><u class="font_red"></u></p>